:root {
    --gold: #E7C873;
    --gold-light: #F0DBA7;
    --gold-dark: #D9B04C;
    --dark-bg: #f8f9fa;
    --card-bg: #ffffff;
    --text-light: #1e1e1e;
    --text-primary: #E7C873;
    --dark: #1a2530;
    --gray: #6c757d;
    --light-gray: #e9ecef;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title,
.section-subtitle,
.step-title,
.step-desc,
.testimonial-text,
.client-name,
.contact-item h3,
.tagline,
.portfolio-card .overlay-content h4,
.portfolio-card .overlay-content p {
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
}

/* Gold text utility class */
.text-gold {
    color: var(--gold);
}

/* Buttons */
.btn-gold {
    background-color: #E7C873;
    color: white;
    border: none;
}

.btn-gold:hover {
    background-color: #E7C873;
}

/* General Navbar */
#navbar {
  transition: background-color 0.6s, box-shadow 0.3s;
  background-color: transparent;
  z-index: 999;
}

#navbar.scrolled {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar .nav-link {
  color: rgb(255, 157, 0);
  font-weight: 500;
  transition: color 0.3s ease;
}

#navbar.scrolled .nav-link {
  color: #000;
}

.navbar .nav-link.active {
  font-weight: 700;
  color: var(--gold); /* Ensure --gold is defined as rgb(255, 157, 0) */
}

/* Dropdown menu styling */
.navbar .dropdown-menu {
  background-color: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
  min-width: 240px;
  transition: all 0.3s ease-in-out;
}

.navbar .dropdown-menu .dropdown-item {
  padding: 10px 20px;
  color: rgb(255, 157, 0);
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgb(255, 243, 220);
  color: #000;
  font-weight: 600;
  border-left: 4px solid rgb(255, 157, 0);
}

/* Dropdown arrow */
.navbar .nav-link.dropdown-toggle::after {
  border-top-color: rgb(255, 157, 0);
  margin-left: 6px;
}

/* Scrolled navbar dropdown behavior */
#navbar.scrolled .dropdown-menu .dropdown-item {
  color: #000;
}

#navbar.scrolled .dropdown-menu .dropdown-item:hover {
  background-color: rgb(255, 236, 202);
  color: rgb(255, 157, 0);
}

/* Fade-in dropdown animation */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.show > .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Mobile specific tweaks */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background-color: #fff;
    border-radius: 0 0 12px 12px;
    padding: 1rem;
  }

  .navbar .nav-link,
  .navbar .dropdown-menu .dropdown-item {
    color: #000 !important;
  }

  .navbar .dropdown-menu {
    box-shadow: none;
    border-radius: 0;
    padding-left: 1rem;
  }

  .navbar .dropdown-menu .dropdown-item {
    padding: 8px 0;
    border-left: 3px solid transparent;
  }

  .navbar .dropdown-menu .dropdown-item:hover {
    background-color: transparent;
    color: rgb(255, 157, 0);
    border-left-color: rgb(255, 157, 0);
  }
}

/* Mobile specific tweaks */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #fff;
        border-radius: 0 0 12px 12px;
        padding: 1rem;
    }

    .navbar .nav-link,
    .navbar .dropdown-menu .dropdown-item {
        color: #000 !important;
    }

    .navbar .dropdown-menu {
        box-shadow: none;
        border-radius: 0;
        padding-left: 1rem;
    }

    .navbar .dropdown-menu .dropdown-item {
        padding: 8px 0;
        border-left: 3px solid transparent;
    }

    .navbar .dropdown-menu .dropdown-item:hover {
        background-color: transparent;
        color: rgb(255, 157, 0);
        border-left-color: rgb(255, 157, 0);
    }
}

/* Hero Section - Refined */
.hero {
    height: 100vh;
    min-height: 500px;
    /* Prevent content squishing */
    background:
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)),
        /* Dark overlay for text contrast */
        url('/Interior-pages/Portfolio/Images/Modern\ Office\ Designs.PNG') no-repeat center center/cover;
    color: #fff;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    isolation: isolate;
    /* Contain pseudo-element */
}

.hero-content {
    max-width: 650px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    /* Responsive font size */
    margin-bottom: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    line-height: 1.;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    /* Better contrast */
}

.hero-content p {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 85%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    border-radius: 50px;
    /* Rounded buttons */
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--gold);
    color: #222;
    border: 2px solid var(--gold);
}

.btn-secondary {
    background: linear-gradient(rgba(248, 129, 3, 0.938), rgba(0, 0, 0, 0.6));
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Hover effects */
.btn-primary:hover {
    background: transparent;
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-2px);
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        text-align: center;
    }

    .hero-content p {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }
}

/* Portfolio Section */
.Projects-section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
}

.Projects-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

/* Section Title */
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--gold), #ffd700, #f0e68c);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 2px;
}

.text-gold {
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.section-subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 4rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 2rem;
}

/* Portfolio Card */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
    height: 400px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
    background: var(--card-bg);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.portfolio-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3),
        0 0 50px rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
}

.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: grayscale(20%) brightness(0.9);
}

.portfolio-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) brightness(0.7);
}

/* Overlay Box */
.overlay-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s ease;
    padding: 30px;
    box-sizing: border-box;
}

.portfolio-card:hover .overlay-box {
    opacity: 1;
}

/* Overlay content */
.overlay-content {
    text-align: center;
    width: 100%;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.6s ease;
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h4 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 15px;
}

.overlay-content h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold);
}

.overlay-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--text-secondary);
    font-weight: 300;
}

.btn-learn {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
}

.btn-learn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: 0.6s;
}

.btn-learn:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
    letter-spacing: 2px;
}

.btn-learn:hover::before {
    left: 100%;
}

/* Project Category */
.project-category {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(212, 175, 55, 0.2);
    color: var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Decorative elements */
.decorative-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    z-index: 3;
}

.corner-tl {
    top: 15px;
    left: 15px;
    border-right: none;
    border-bottom: none;
}

.corner-tr {
    top: 15px;
    right: 15px;
    border-left: none;
    border-bottom: none;
}

.corner-bl {
    bottom: 15px;
    left: 15px;
    border-right: none;
    border-top: none;
}

.corner-br {
    bottom: 15px;
    right: 15px;
    border-left: none;
    border-top: none;
}

/* Overlay Modal */
.portfolio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.portfolio-overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay-content-modal {
    background: var(--overlay-bg);
    border: 2px solid var(--gold);
    border-radius: 15px;
    max-width: 1000px;
    width: 90%;
    padding: 40px;
    position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--gold);
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.1);
}

/* Floating Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    background: rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .portfolio-grid {
        gap: 40px;
    }

    .portfolio-card {
        height: 360px;
    }
}

@media (max-width: 992px) {
    .section-title {
        font-size: 2.8rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 35px;
    }

    .portfolio-card {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1.1rem;
        margin-bottom: 3rem;
    }

    .portfolio-grid {
        gap: 30px;
    }

    .portfolio-card {
        height: 280px;
    }

    .overlay-content h4 {
        font-size: 1.6rem;
    }
}

@media (max-width: 576px) {
    .Projects-section {
        padding: 6rem 0;
    }

    .container {
        padding: 0 20px;
    }

    .section-title {
        font-size: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portfolio-card {
        height: 350px;
    }
}


/* Contact Section */
.contact-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(247, 247, 247, 0.95) 0%, rgba(255, 255, 255, 0.95) 100%), url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=2070&auto=format&fit=crop') center/cover;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gray);
    margin-bottom: 50px;
    font-weight: 400;
}

.contact-container {
    display: flex;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    margin-top: 30px;
}

.contact-form {
    flex: 1;
    padding: 60px;
    background: var(--card-bg);
}

.contact-info {
    flex: 1;
    padding: 60px;
    background: linear-gradient(135deg, #2c3e50 0%, #1a2530 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(231, 200, 115, 0.1);
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(231, 200, 115, 0.05);
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
    font-size: 1.05rem;
}

input,
textarea {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    background: #fff;
}

input:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(231, 200, 115, 0.2);
    outline: none;
}

textarea {
    min-height: 180px;
    resize: vertical;
}

.optional {
    color: var(--gray);
    font-weight: 400;
    font-size: 0.9rem;
}

.info-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: white;
    position: relative;
    padding-bottom: 20px;
    z-index: 2;
}

.info-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gold);
    border-radius: 3px;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.85);
    z-index: 2;
    position: relative;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.contact-icon {
    background: var(--gold);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: var(--transition);
}

.contact-icon:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon i {
    font-size: 1.4rem;
    color: white;
}

.contact-details h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.contact-details p {
    font-size: 1.1rem;
    color: #ecf0f1;
}

.hours {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Footer */
footer {
    background: linear-gradient(to right, #1a2530, #2c3e50);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold);
}

.footer-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold);
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.footer-logo img {
    width: 50px;
    margin-right: 15px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
}

.footer p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    padding: 5px 0;
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.contact-info-item {
    display: flex;
    margin-bottom: 18px;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: rgba(231, 200, 115, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1100px) {

    .contact-form,
    .contact-info {
        padding: 50px;
    }
}

@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        border-bottom: 1px solid var(--light-gray);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 100px 0 60px;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-subtitle {
        font-size: 1.2rem;
    }

    .contact-form,
    .contact-info {
        padding: 40px;
    }

    .info-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .contact-form,
    .contact-info {
        padding: 30px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 60px;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
        margin-right: 15px;
    }

    .contact-details h3 {
        font-size: 1.2rem;
    }
}